//
//  TableBtnView.m
//  PlayCatchGame
//
//  Created by 流言 on 2018/2/28.
//  Copyright © 2018年 清正. All rights reserved.
//

#import "TableBtnView.h"

@interface TableBtnView()

@property (nonatomic, copy)ButtonBlock buttonBlock;

@end

@implementation TableBtnView

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (IBAction)buttonClick:(UIButton *)sender {
    if (self.buttonBlock) {
        self.buttonBlock(sender);
    }
}

- (void)didButtonClickBlock:(ButtonBlock)newBlock {
    self.buttonBlock =newBlock;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
